package edu.hebeu.entity;

import java.io.Serializable;
import java.util.List;

public class ListGoodsResponse implements Serializable{
    private static final long serialVersionUID = -3005728888843522964L;
    private int code;
    private String msg;
    private Page page;
    private List<Root_Navs> root_navs;
    public void setCode(int code) {
        this.code = code;
    }
    public int getCode() {
        return code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
    public String getMsg() {
        return msg;
    }

    public void setPage(Page page) {
        this.page = page;
    }
    public Page getPage() {
        return page;
    }

    public void setRoot_navs(List<Root_Navs> root_navs) {
        this.root_navs = root_navs;
    }
    public List<Root_Navs> getRoot_navs() {
        return root_navs;
    }

    @Override
    public String toString() {
        return "ListGoodsResponse{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", page=" + page +
                ", root_navs=" + root_navs +
                '}';
    }

    public class Page implements Serializable{
        private static final long serialVersionUID = 3613923816676388923L;
        private int count;
        private int total;
        private int index;
        private List<Good> goods;
        public void setCount(int count) {
            this.count = count;
        }
        public int getCount() {
            return count;
        }

        public void setTotal(int total) {
            this.total = total;
        }
        public int getTotal() {
            return total;
        }

        public void setIndex(int index) {
            this.index = index;
        }
        public int getIndex() {
            return index;
        }

        public List<Good> getGoods() {
            return goods;
        }
        public void setGoods(List<Good> goods) {
            this.goods = goods;
        }

        @Override
        public String toString() {
            return "Page{" +
                    "count=" + count +
                    ", total=" + total +
                    ", index=" + index +
                    ", goods=" + goods +
                    '}';
        }
    }

    public class Good implements Serializable {
        private static final long serialVersionUID = -8988927539958904182L;
        private int id;
        private String name;
        private String describe;
        private int price;
        private int store;
        private String src;
        private int goods_category_id;
        private int index;
        private String goods_category_name;
        private String user_username;
        private int root_category_id;
        private String root_category_name;
        private String address;
        public void setId(int id) {
            this.id = id;
        }
        public int getId() {
            return id;
        }

        public void setName(String name) {
            this.name = name;
        }
        public String getName() {
            return name;
        }

        public void setDescribe(String describe) {
            this.describe = describe;
        }
        public String getDescribe() {
            return describe;
        }

        public void setPrice(int price) {
            this.price = price;
        }
        public int getPrice() {
            return price;
        }

        public void setStore(int store) {
            this.store = store;
        }
        public int getStore() {
            return store;
        }

        public void setSrc(String src) {
            this.src = src;
        }
        public String getSrc() {
            return src;
        }

        public void setGoods_category_id(int goods_category_id) {
            this.goods_category_id = goods_category_id;
        }
        public int getGoods_category_id() {
            return goods_category_id;
        }

        public void setIndex(int index) {
            this.index = index;
        }
        public int getIndex() {
            return index;
        }

        public void setGoods_category_name(String goods_category_name) {
            this.goods_category_name = goods_category_name;
        }
        public String getGoods_category_name() {
            return goods_category_name;
        }

        public void setUser_username(String user_username) {
            this.user_username = user_username;
        }
        public String getUser_username() {
            return user_username;
        }

        public void setRoot_category_id(int root_category_id) {
            this.root_category_id = root_category_id;
        }
        public int getRoot_category_id() {
            return root_category_id;
        }

        public void setRoot_category_name(String root_category_name) {
            this.root_category_name = root_category_name;
        }
        public String getRoot_category_name() {
            return root_category_name;
        }

        public void setAddress(String address) {
            this.address = address;
        }
        public String getAddress() {
            return address;
        }

        @Override
        public String toString() {
            return "Good{" +
                    "id=" + id +
                    ", name='" + name + '\'' +
                    ", describe='" + describe + '\'' +
                    ", price=" + price +
                    ", store=" + store +
                    ", src='" + src + '\'' +
                    ", goods_category_id=" + goods_category_id +
                    ", index=" + index +
                    ", goods_category_name='" + goods_category_name + '\'' +
                    ", user_username='" + user_username + '\'' +
                    ", root_category_id=" + root_category_id +
                    ", root_category_name='" + root_category_name + '\'' +
                    ", address='" + address + '\'' +
                    '}';
        }
    }

    public class Root_Navs implements Serializable{
        private static final long serialVersionUID = -6425859496158487965L;
        private int id;
        private String name;
        private String describe;
        public void setId(int id) {
            this.id = id;
        }
        public int getId() {
            return id;
        }

        public void setName(String name) {
            this.name = name;
        }
        public String getName() {
            return name;
        }

        public void setDescribe(String describe) {
            this.describe = describe;
        }
        public String getDescribe() {
            return describe;
        }
    }

}